package com.pcbly.web.action.system;

import java.util.List;

import com.pcbly.web.action.BaseAction;
import com.pcbly.web.bean.field.FormTableDataBean;
import com.pcbly.web.business.form.FormTableDataService;

public class FormTableDataAction extends BaseAction<FormTableDataBean> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7953534198432372912L;
	private List<FormTableDataBean> formTableDataBeans;
	private FormTableDataService formTableDataService;
	private String formId;

	public String index() throws Exception {
		formTableDataBeans = formTableDataService
				.queryFormTableDataBeansByFormId(formId);
		return super.index();
	}

	public String save() throws Exception {
		formTableDataBeans = formTableDataService
				.saveFormTableDataBeans(formTableDataBeans);
		return super.save();
	}

	public void setFormTableDataService(
			FormTableDataService formTableDataService) {
		this.formTableDataService = formTableDataService;
	}

	public List<FormTableDataBean> getFormTableDataBeans() {
		return formTableDataBeans;
	}

	public void setFormTableDataBeans(List<FormTableDataBean> formTableDataBeans) {
		this.formTableDataBeans = formTableDataBeans;
	}

	public String getFormId() {
		return formId;
	}

	public void setFormId(String formId) {
		this.formId = formId;
	}

}
